/**
 * A class that maintains information on a book.
 * This might form part of a larger application such
 * as a library system, for instance.
 *
 * @author (Insert your name here.)
 * @version (Insert today's date here.)
 */
class Book
{
    // The fields.
    private String author;
    private String title;
    private int pages;
    private String refNumber;

    /**
     * Set the author and title fields when this object
     * is constructed.
     */
    public Book(String bookAuthor, String bookTitle, int bookPages){
        author = bookAuthor;
        title = bookTitle;
        pages = bookPages;
        refNumber = "";
    }
    
    public Book(String bookAuthor, String bookTitle, int bookPages, String ref){
        author = bookAuthor;
        title = bookTitle;
        pages = bookPages;
        setRefNumber(ref);
    }

    // The setters.
    
    /**
     * Set the Reference number for the book;
     */
    public void setRefNumber(String ref){
        refNumber = ref;
    }
    
    // The getters.
    
    /**
     * Get the author value.
     */
    public String getAuthor(){
        return this.author;
    }
    
    /**
     * Get the title value.
     */
    public String getTitle(){
        return this.title;
    }
    
    /**
     * Get the pages value.
     */
    public int getValue(){
        return this.pages;
    }
    
    /**
     * Get the reference value.
     */
    public String getRefNumber(){
        return this.refNumber;
    }
    
    // Print methods
    /**
     * Print the author to the screen.
     */
    public void printAuthor(){
        System.out.println("Auteur: \n\t- " + this.author);
    }
    
    /**
     * Print the title to the screen.
     */
    public void printTitle(){
        System.out.println("Title: \n\t- " + this.title);
    }
    
     /**
     * Print all the details of the book.
     */
    public void printDetails(){
        System.out.println("Titel:\t\t" + this.author + "\nAuteur:\t\t" + this.title + "\nPagina's:\t" + this.pages + "\n");
    }
}
